home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.misc
- References: <310d1327@cu-amiga.demon.co.uk>
- X-Newsreader: UMSZCo V1.1 BETA 11 (3.2.96)
- Mime-version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-encoding: 8BIT
- Path: news.tng.oche.de!tomate.tng.oche.de
- X-Gateway: ZCONNECT UE utomate.tng.oche.de.tomate.tng.oche.de [PolyNet zTOr V4.901 Serie: "light"]
- Subject: Re: .key
- Date: Sun, 4 Feb 96 12:27:59 GMT
- Message-ID: <68771375@0humpty.tomate.tng.oche.de>
- From: humpty@TOMATE.TNG.OCHE.DE (Andreas Mixich)
-
- anthony@cu-amiga.demon.co.uk wrote about ".key" on "29-Jan-1996 12:34:15 [S+0]"
- at zer.COMP.SYS.AMIGA.MISC:
-
-
- > I've seen similar scripts using commands like this. They're normally followed
- > up with .bra lines. I think they're an Amigados way of passing arguments to
- > the
- > script based on what was called from Workbench, although don't quote me on
- > that
- > as I've never understood them myself fully. Equivalent to the Arexx Parse Arg
- > perhaps?
-
-
- From the DOS manual (Aminet/I/dont/know/where)
-
- To have a script taking arguments like FILE, HELP, PUBSCREEN you can start
- it with the following:
-
- .key FILE,HELP/S,PUBSCREEN
- .bra {
- .ket }
-
- IF {HELP}
- ECHO "This is the helptext"
- ELSE
- rtEZRequest TITLE "Some Title" BODY "File {FILE} has been successfully
- deleted" PUBSCREEN {PUBSCREEN}
- ENDIF
-
- As you see you can parse arguments, as you guessed right. To allow the
- programmer to define other brackets, the commands .bra and .ket have been
- designed. There exist some more "point comands" like .DEF etc. For more I
- suggest you to read either the DOS manual, or if you were so unlucky like
- me getting an A1200 without manuals, the DOSMAN.LHA (or so) on
- Aminet/Text or DEV/GUI (cause it was designed as an GUI maker example for
- DOS scripts). I forgot, sorry.
-
-
- --
- Ciao, Andreas
- Internet: humpty@tomate.tng.oche.de
- FIDO : 2:244/1544.14
-
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=++=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
- Join in the new game that's sweeping the country. It's called "Bureaucracy". Everybody stands in a circle. The first person to do anything loses.
-
-